// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import ElementUI from 'element-ui'
import './assets/theme/index.css'

import 'normalize.css'

Vue.use(ElementUI)

Vue.config.productionTip = false

// Vue.filter('price', p => {
//   if (p !== undefined) {
//     let s = (p / 100).toString().split('.')
//     if (s[1]) {
//       s[1] = s[1].padEnd(2, '0')
//     } else {
//       s[1] = '00'
//     }
//     return '￥' + s.join('.')
//   } else {
//     return ''
//   }
// })

/* eslint-disable no-new */
export default new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
